/* ParentBehaviorController.cpp - implementation of ParentBehaviorController class */

#include "ParentBehaviorController.h"



void ParentBehaviorController::Reset()
{	
	((BehaviorController*)this)->Reset();
	curPos = 0;	
}

void ParentBehaviorController::SetCurrent(BaseBehavior* incBehavior)
{
	int pos = 0;
	for(std::vector<BaseBehavior*>::iterator it = subBehaviors.begin(); it != subBehaviors.end(); pos++, it++)
		if((*it) == incBehavior)
			break;
	if(pos != subBehaviors.size())	curPos = pos;
}